package com.mxnet.chongjin.supoman.config;

import com.mxnet.chongjin.supoman.utils.WifiUtils;

/**
 * author: Administrator
 * email: lcj270018655@163.com
 * date: 2018/5/4
 */

public class Api {

 public static final String URL_HEADER = "http://server.chinasuperman.net";
 public static final String SERVER_IP = "3.121.111.189";
    //所有链接请求头
//    public static final String URL_HEADER = "http://copper.mxnet.cn";
//    public static final String SERVER_IP = "116.62.203.85";

    public static final int SERVER_PORT = 7681;

    public static final Boolean Debug_Mode=false;  //是否测试模式

    /**
     * 获取图片接口
     */
    public static final String GET_IMAGE = "/file/";

    /**
     * 上传图片
     */
    public static final String UPLOAD_IMG = "/resource/upload.do?fileCategory=maintain";

    /**
     * 获取命令执行状态
     */
    public static final String QUERY_CODE_STATUS = "/customer/queryCopperOperate.do?";


    /**
     * 执行命令并获取状态
     */
    public static final String QUERY_CODE_New_STATUS = "/customer/queryCopperOperateNew.do?";

    /**
     * 获取工作状态
     */
    public static final String QUERY_WORK_STATUS = "/customer/queryCopperProduct.do?";

    /**
     * 顾客相关页面接口
     */
    //顾客登陆 post
    public static final String CUSTOMER_LOGIN = "/customer/customerLogin.do";

    //判断是否登陆
    public static final String IS_LOGIN = "/customer/judgeWho.do";

    //顾客注册
    public static final String CUSTOMER_RESGIST = "/customer/register.do?";

    //忘记密码
    public static final String FORGET_PWD = "/customer/forgetPassword.do";

    //更换昵称
    public static final String CHANGE_NICKNAME = "/customer/updateUserName.do";

    //更换头像
    public static final String CHANGE_HEADIMG = "/customer/updateUserImgUrl.do?";

    //更换邮箱
    public static final String CHANGE_EMAIL = "/customer/updateUserCode.do";

    //查看报修列表或详情
    public static final String DECLARATIONFORM = "/customer/queryDeclarationForm.do?";

    //在线报修
    public static final String REPAIR_ONLINE = "/customer/repairOnLine.do?";

    //设置记忆点
    public static final String SET_APPOINTMENT = "/customer/setMemoryPointNew.do?";

    //获取设置的记忆点
    public static final String GET_APPOINTMENT = "/customer/queryMemoryPoint.do?";

    //删除记忆点
    public static final String DEL_APPOINTMENT = "/customer/deleteMemoryPoint.do?";

    //预约
    public static final String SET_APPOINT = "/customer/setApoints.do?";

    //获取固件最新版本
    public static final String FIRMWARE_VERSION = "/customer/queryTheRecentFirmwareVersion.do?";

    //查询热门机型
    public static final String HOT_MACHINE = "/customer/queryHotRobotList.do?";

    //获取全部机型
    public static final String ALL_MACHINE = "/customer/queryAllRobotList.do?";

    //查看机器型号详情
    public static final String MACHINE_TYPE = "/customer/queryElectronicDescription.do?";

    //获取邮箱验证码
    public static final String EMAIL_CHECKCODE = "/customer/getIndentCode.do?";

    //获取零部件
    public static final String GET_PARTS = "/system/queryParamsByTypes.do?";

    /**
     * 维修工相关界面
     */

    //维修工登陆
    public static final String EMP_LOGIN = "/emp/empLogin.do";

    //查询报修单
    public static final String REPAIR_LIST = "/emp/queryDeclarationFormBySaleNoAndStatus.do";

    //查询报修单明细
    public static final String REPAIR_DETAIL = "/emp/queryDeclarationFormDetails.do";

    //受理保修单
    public static final String ACCEPT_MAINTENANCE_LIST = "/emp/acceptDeclarationForm.do?";

    //对已受理单填写维修记录
    public static final String WRITE_REPAIR_RECORD_DEFAULT = "/emp/addMaintenanceRecord.do";

    //手动添加维修记录
    public static final String WRITE_REPAIR_RECORD_SELF = "/emp/addDeclarationAndMaintenance.do?";


    //帧头 “spmn”
    public static final String HEAD = "73706D6E";

    //缺省值 自动
    public static final String DEFAULT = "00";

    //左
    public static final String LEFT ="000101";

    //右
    public static final String RIGHT = "000102";

    //前
    public static final String FORWARD = "000103";

    //后
    public static final String BACKWARD ="000104";

    //启动
    public static final String STOP = "000700";
    public static final String STOP_BACK_SUCCESS = "000801";
    public static final String STOP_BACK_FAIL = "000800";

    //停止
    public static final String START = "000900";
    public static final String START_BACK_SUCCESS = "000A01";
    public static final String START_BACK_FAIL = "000A00";

    //转向应答
    public static final String TURN_BACK_SUCCESS = "000201";
    public static final String TURN_BACK_FAIL = "000200";

    //自动模式
    public static final String AUTO = "000300";

    //自动模式应答
    public static final String AUTO_BACK_SUCCESS = "000401";
    public static final String AUTO_BACK_FAIL = "000400";

    //返航充电
    public static final String CHARGE = "000500";

    //返航充电应答
    public static final String CHARGE_BACK_SUCCESS = "000601";
    public static final String CHARGE_BACK_FAIL = "000600";

    //渐开线模式
    public static final String INVOLUTE = "000B00";

    //渐开线应答
    public static final String INVOLUTE_SUCCESS = "000C01";
    public static final String INVOLUTE_FAIL = "000C00";

    //渐开线停指模式
    public static final String INVOLUTE_STOP = "000D00";

    //渐开线应答
    public static final String INVOLUTE_STOP_SUCCESS = "000E01";
    public static final String INVOLUTE_STOP_FAIL = "000E00";

    //设置密码
    public static final String PASSWORD = "0101";

    //设置密码应答
    public static final String PASSWORD_BACK_SUCCESS = "010201";
    public static final String PASSWORD_BACK_FAIL = "010200";

    //设置定时
    public static final String APPOINT = "0103";

    //定时应答
    public static final  String APPOINT_BACK_SUCCESS = "010401";
    public static final  String APPOINT_BACK_FAIL = "010400";

    //割草
    public static final String MOWING = "020101";

    //回航
    public static final String BACKING = "020102";

    //充电
    public static final String CHARGEING = "020103";

    //空闲
    public static final String FREE = "020104";

    //平台报警
    public static final String F_PLATFORM = "020201";

    //行走过流
    public static final String F_WALK = "020202";

    //割草过流
    public static final String F_MOW = "020203";

    //倾斜报警
    public static final String F_TILT = "020204";

    //出线报警
    public static final String F_OUTLINE = "020205";

    //信号丢失
    public static final String F_NOSINGNAL = "020206";

    //电量过低
    public static final String F_LOWELE = "020207";

    public static final String MY_MAC = WifiUtils.getMac().replace(":", "");


}
